package com.szzg10.pattern.observer;

import java.util.Observable;
import java.util.Observer;

public class ObserverImpl implements Observer {

	@Override
	public void update(Observable arg0, Object arg1) {
		if(arg0 instanceof ObservableImpl) {
			ObservableImpl o = (ObservableImpl)arg0;
			System.out.println(o.getI());
		}
	}

}
